package com.ruoyi.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 *
 */
@Data
public class UserQuestionVO {

    /** 主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 提问者 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long launchUserId;

    /** 回复者 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long answerUserId;

    /** 问题 */
    private String question;

    /** 回复 */
    private String answer;

    /** 是否回复 0 否 1 是 */
    private String isAnswer;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
